package org.lx.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import org.lx.common.core.domain.entity.SysUser;
import org.lx.nursing.domain.NursingElder;
import org.lx.nursing.vo.NursingNameVo;

import java.util.List;
import java.util.Set;

@Mapper
public interface NursingElderMapper extends BaseMapper<NursingElder> {
    List<SysUser> selectUserByElderId(Long elderId);

    @Select("")
    List<NursingNameVo> selectNickNameByElderId(@Param("set") Set<Long> elderIds);

    @Select("")
    NursingElder selectNursingElderById(Long id);

    @Select("")
    List<NursingElder> selectNursingElderList(NursingElder nursingElder);

    @Insert("")
    int insertNursingElder(NursingElder nursingElder);

    @Update("")
    int updateNursingElder(NursingElder nursingElder);

    @Delete("")
    int deleteNursingElderById(Long id);

    @Delete("")
    int deleteNursingElderByIds(Long[] ids);
}
